Skip to content

feat: show step count per activity session#3

Merged
JanJetze merged 1 commit intomasterfrom
feat/activity-step-counts
Mar 6, 2026
Merged

feat: show step count per activity session#3
JanJetze merged 1 commit intomasterfrom
feat/activity-step-counts

Conversation

@JanJetze
Copy link
Copy Markdown
Owner

@JanJetze JanJetze commented Mar 6, 2026

Summary

  • Adds stepCount to ActivitySession, computed by summing sensor window steps within each session's time range
  • Displays step count next to duration in the activity log (e.g. "1,247 steps")
  • Fixes stale KDoc references from "5-second" to "30-second" windows

Test plan

  • Verify step counts appear next to walking sessions in the Activities tab
  • Verify cycling/still sessions with 0 steps don't show a step count
  • Unit test added for step count attachment in RecomputeActivitySessionsUseCaseTest

Sum sensor window steps within each session's time range and display
the count next to the duration in the activity log. Also fixes stale
KDoc references to 5-second windows (now 30-second).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JanJetze JanJetze merged commit a50558a into master Mar 6, 2026
1 check passed
@JanJetze JanJetze deleted the feat/activity-step-counts branch March 6, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant